package bist.believeinstep.logic;

import java.util.List;

import bist.believeinstep.domain.Tour;
import bist.believeinstep.impl.TourTemplate;
import bist.believeinstep.util.Util;

public class TourService {
	private TourTemplate tourTemplate;
	
	public TourService(){
		tourTemplate = (TourTemplate)Util.getConnection("tourTemplate");
	}
	public void create(Tour tour){
		tourTemplate.create(tour);
	}
	public void update(Tour tour){
		tourTemplate.update(tour);
	}
	public void delete(Integer id){
		tourTemplate.delete(id);
	}
	public void delete(String code){
		tourTemplate.delete(code);
	}
	public Tour getTour(Integer id){
		return tourTemplate.getTour(id);
	}
	public Tour getTour(String code){
		return tourTemplate.getTour(code);
	}
	public List<Tour> listTour(){
		return tourTemplate.listTour();
	}
}
